package com.heima.media.feign;


import com.heima.media.dto.ArticleDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-article",path = "/api/v1/article")
public interface ArticleFeignClient {

    @PostMapping("/publishOrUpdate")
    Long publishOrUpdate(@RequestBody ArticleDto apArticle);

}
